﻿using MySpace.Data;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class MasterPage_MasterPageCt : System.Web.UI.MasterPage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if(!IsPostBack)
        {
            this.bdright();
        }
    }
    protected void bdright()
    {
        DBHandler dbh = GetHandler.Init();
        dbh.CommandText = "select top 20 * from news order by id desc";
        Repeater1.DataSource = dbh.ExecuteDataTable();
        Repeater1.DataBind();
    }
}
